package com.yourcompany.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yourcompany.api.entity.CreditRepayment;
import com.yourcompany.api.mapper.CreditRepaymentMapper;
import com.yourcompany.api.service.CreditRepaymentService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class CreditRepaymentServiceImpl extends ServiceImpl<CreditRepaymentMapper, CreditRepayment>
        implements CreditRepaymentService {
    
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void createRepayment(CreditRepayment repayment) {
        save(repayment);
    }
    
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void updateRepayment(CreditRepayment repayment) {
        updateById(repayment);
    }
} 